
package com.fish.yssb.ui.page.activity.wave;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.RectF;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;

import com.fish.yssb.R;
import com.fish.yssb.ui.page.activity.base.DemoBase;
import com.fish.yssb.wave.PassInfo;
import com.fish.yssb.wave.PassInfoSubData;
import com.fish.yssb.wave.WaveControl;
import com.fish.yssb.wave.WaveInfo;
import com.github.mikephil.charting.charts.LineChart;
import com.github.mikephil.charting.components.Legend;
import com.github.mikephil.charting.components.YAxis;
import com.github.mikephil.charting.data.BarEntry;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.LineData;
import com.github.mikephil.charting.data.LineDataSet;
import com.github.mikephil.charting.highlight.Highlight;
import com.github.mikephil.charting.interfaces.datasets.IDataSet;
import com.github.mikephil.charting.listener.OnChartValueSelectedListener;
import com.github.mikephil.charting.utils.MPPointD;
import com.github.mikephil.charting.utils.MPPointF;
import com.jaeger.library.StatusBarUtil;

import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.HashMap;

@SuppressWarnings("SameParameterValue")
public class PerformanceLineChart extends DemoBase implements OnSeekBarChangeListener {

    private LineChart chart,chart2,chart3,chart4,chart5,chart6,chart7,chart8,chart9, chart10,
    chart11,chart12,chart13,chart14,chart15,chart16,chart17,chart18,chart19, chart20,
            chart21,chart22,chart23,chart24,chart25,chart26,chart27,chart28,chart29, chart30;
    private SeekBar seekBarValues;
    private TextView tvCount;
    private LinearLayout tv_back;

    private TextView tv_show1,tv_show1_1,tv_show2,tv_show2_1,tv_show3,tv_show3_1,tv_show4,tv_show4_1,tv_show5,tv_show5_1,
            tv_show6,tv_show6_1,tv_show7,tv_show7_1,tv_show8,tv_show8_1,tv_show9,tv_show9_1,tv_show10,tv_show10_1,
            tv_show11,tv_show11_1,tv_show12,tv_show12_1,tv_show13,tv_show13_1,tv_show14,tv_show14_1,tv_show15,tv_show15_1,
            tv_show16,tv_show16_1,tv_show17,tv_show17_1,tv_show18,tv_show18_1,tv_show19,tv_show19_1,tv_show20,tv_show20_1,
            tv_show21,tv_show21_1,tv_show22,tv_show22_1,tv_show23,tv_show23_1,tv_show24,tv_show24_1,tv_show25,tv_show25_1,
            tv_show26,tv_show26_1,tv_show27,tv_show27_1,tv_show28,tv_show28_1,tv_show29,tv_show29_1,tv_show30,tv_show30_1;


    private LinearLayout ll_1,ll_2,ll_3,ll_4,ll_5,ll_6,ll_7,ll_8,ll_9,ll_10,ll_11,ll_12,ll_13,ll_14,ll_15,ll_16,ll_17,ll_18,ll_19,ll_20,
            ll_21,ll_22,ll_23,ll_24,ll_25,ll_26,ll_27,ll_28,ll_29,ll_30;
    private  WaveInfo info;
    @SuppressLint("WrongViewCast")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
////                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        StatusBarUtil.setTransparent(this);
        StatusBarUtil.setDarkMode(this);
        setContentView(R.layout.activity_performance_linechart);
////
         info =  WaveControl.getData();
////        setTitle("PerformanceLineChart");

        tv_back = (LinearLayout) findViewById(R.id.tv_back);
        tv_back.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {

                finish();

            }
        });
        tvCount = findViewById(R.id.tvValueCount);
        seekBarValues = findViewById(R.id.seekbarValues);
        seekBarValues.setOnSeekBarChangeListener(this);

        ll_1 = findViewById(R.id.ll_1);
        ll_2 = findViewById(R.id.ll_2);
        ll_3 = findViewById(R.id.ll_3);
        ll_4 = findViewById(R.id.ll_4);
        ll_5 = findViewById(R.id.ll_5);
        ll_6 = findViewById(R.id.ll_6);
        ll_7 = findViewById(R.id.ll_7);
        ll_8 = findViewById(R.id.ll_8);
        ll_9 = findViewById(R.id.ll_9);
        ll_10 = findViewById(R.id.ll_10);
        ll_11 = findViewById(R.id.ll_11);
        ll_12 = findViewById(R.id.ll_12);
        ll_13 = findViewById(R.id.ll_13);
        ll_14 = findViewById(R.id.ll_14);
        ll_15 = findViewById(R.id.ll_15);
        ll_16 = findViewById(R.id.ll_16);
        ll_17 = findViewById(R.id.ll_17);
        ll_18 = findViewById(R.id.ll_18);
        ll_19 = findViewById(R.id.ll_19);
        ll_20 = findViewById(R.id.ll_20);
        ll_21 = findViewById(R.id.ll_21);
        ll_22 = findViewById(R.id.ll_22);
        ll_23 = findViewById(R.id.ll_23);
        ll_24 = findViewById(R.id.ll_24);
        ll_25 = findViewById(R.id.ll_25);
        ll_26 = findViewById(R.id.ll_26);
        ll_27 = findViewById(R.id.ll_27);
        ll_28 = findViewById(R.id.ll_28);
        ll_29 = findViewById(R.id.ll_29);
        ll_30 = findViewById(R.id.ll_20);


        tv_show1 = findViewById(R.id.tv_show1);
        tv_show1_1 = findViewById(R.id.tv_show1_1);


        tv_show2 = findViewById(R.id.tv_show2);
        tv_show2_1 = findViewById(R.id.tv_show2_1);
        tv_show2.setTextColor(Color.parseColor("#00FF00"));
        tv_show2_1.setTextColor(Color.parseColor("#00FF00"));

        tv_show3 = findViewById(R.id.tv_show3);
        tv_show3_1 = findViewById(R.id.tv_show3_1);
        tv_show3.setTextColor(Color.parseColor("#FF0000"));
        tv_show3_1.setTextColor(Color.parseColor("#FF0000"));

        tv_show4 = findViewById(R.id.tv_show4);
        tv_show4_1 = findViewById(R.id.tv_show4_1);
        tv_show4.setTextColor(Color.parseColor("#0000FF"));
        tv_show4_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show5 = findViewById(R.id.tv_show5);
        tv_show5_1 = findViewById(R.id.tv_show5_1);
        tv_show5.setTextColor(Color.parseColor("#0000FF"));
        tv_show5_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show6 = findViewById(R.id.tv_show6);
        tv_show6_1 = findViewById(R.id.tv_show6_1);
        tv_show6.setTextColor(Color.parseColor("#0000FF"));
        tv_show6_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show7 = findViewById(R.id.tv_show7);
        tv_show7_1 = findViewById(R.id.tv_show7_1);
        tv_show7.setTextColor(Color.parseColor("#0000FF"));
        tv_show7_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show8 = findViewById(R.id.tv_show8);
        tv_show8_1 = findViewById(R.id.tv_show8_1);
        tv_show8.setTextColor(Color.parseColor("#0000FF"));
        tv_show8_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show9 = findViewById(R.id.tv_show9);
        tv_show9_1 = findViewById(R.id.tv_show9_1);
        tv_show9.setTextColor(Color.parseColor("#0000FF"));
        tv_show9_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show10 = findViewById(R.id.tv_show10);
        tv_show10_1 = findViewById(R.id.tv_show10_1);
        tv_show10.setTextColor(Color.parseColor("#0000FF"));
        tv_show10_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show11 = findViewById(R.id.tv_show11);
        tv_show11_1 = findViewById(R.id.tv_show11_1);
        tv_show11.setTextColor(Color.parseColor("#0000FF"));
        tv_show11_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show12 = findViewById(R.id.tv_show12);
        tv_show12_1 = findViewById(R.id.tv_show12_1);
        tv_show12.setTextColor(Color.parseColor("#0000FF"));
        tv_show12_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show13 = findViewById(R.id.tv_show13);
        tv_show13_1 = findViewById(R.id.tv_show13_1);
        tv_show13.setTextColor(Color.parseColor("#0000FF"));
        tv_show13_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show14 = findViewById(R.id.tv_show14);
        tv_show14_1 = findViewById(R.id.tv_show14_1);
        tv_show14.setTextColor(Color.parseColor("#0000FF"));
        tv_show14_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show15 = findViewById(R.id.tv_show15);
        tv_show15_1 = findViewById(R.id.tv_show15_1);
        tv_show15.setTextColor(Color.parseColor("#0000FF"));
        tv_show15_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show16 = findViewById(R.id.tv_show16);
        tv_show16_1 = findViewById(R.id.tv_show16_1);
        tv_show16.setTextColor(Color.parseColor("#0000FF"));
        tv_show16_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show17 = findViewById(R.id.tv_show17);
        tv_show17_1 = findViewById(R.id.tv_show17_1);
        tv_show17.setTextColor(Color.parseColor("#0000FF"));
        tv_show17_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show18 = findViewById(R.id.tv_show18);
        tv_show18_1 = findViewById(R.id.tv_show18_1);
        tv_show18.setTextColor(Color.parseColor("#0000FF"));
        tv_show18_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show19 = findViewById(R.id.tv_show19);
        tv_show19_1 = findViewById(R.id.tv_show19_1);
        tv_show19.setTextColor(Color.parseColor("#0000FF"));
        tv_show19_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show20 = findViewById(R.id.tv_show20);
        tv_show20_1 = findViewById(R.id.tv_show20_1);
        tv_show20.setTextColor(Color.parseColor("#0000FF"));
        tv_show20_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show21 = findViewById(R.id.tv_show21);
        tv_show21_1 = findViewById(R.id.tv_show21_1);
        tv_show21.setTextColor(Color.parseColor("#0000FF"));
        tv_show21_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show22 = findViewById(R.id.tv_show22);
        tv_show22_1 = findViewById(R.id.tv_show22_1);
        tv_show22.setTextColor(Color.parseColor("#0000FF"));
        tv_show22_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show23 = findViewById(R.id.tv_show23);
        tv_show23_1 = findViewById(R.id.tv_show23_1);
        tv_show23.setTextColor(Color.parseColor("#0000FF"));
        tv_show23_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show24 = findViewById(R.id.tv_show24);
        tv_show24_1 = findViewById(R.id.tv_show24_1);
        tv_show24.setTextColor(Color.parseColor("#0000FF"));
        tv_show24_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show25 = findViewById(R.id.tv_show25);
        tv_show25_1 = findViewById(R.id.tv_show25_1);
        tv_show25.setTextColor(Color.parseColor("#0000FF"));
        tv_show25_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show26 = findViewById(R.id.tv_show26);
        tv_show26_1 = findViewById(R.id.tv_show26_1);
        tv_show26.setTextColor(Color.parseColor("#0000FF"));
        tv_show26_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show27 = findViewById(R.id.tv_show27);
        tv_show27_1 = findViewById(R.id.tv_show27_1);
        tv_show27.setTextColor(Color.parseColor("#0000FF"));
        tv_show27_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show28 = findViewById(R.id.tv_show28);
        tv_show28_1 = findViewById(R.id.tv_show28_1);
        tv_show28.setTextColor(Color.parseColor("#0000FF"));
        tv_show28_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show29 = findViewById(R.id.tv_show29);
        tv_show29_1 = findViewById(R.id.tv_show29_1);
        tv_show29.setTextColor(Color.parseColor("#0000FF"));
        tv_show29_1.setTextColor(Color.parseColor("#0000FF"));

        tv_show30 = findViewById(R.id.tv_show30);
        tv_show30_1 = findViewById(R.id.tv_show30_1);
        tv_show30.setTextColor(Color.parseColor("#0000FF"));
        tv_show30_1.setTextColor(Color.parseColor("#0000FF"));




        chart = findViewById(R.id.chart1);
        chart6 = findViewById(R.id.chart6);
        chart7 = findViewById(R.id.chart7);
        chart8 = findViewById(R.id.chart8);
        chart9 = findViewById(R.id.chart9);
        chart10 = findViewById(R.id.chart10);
        chart2 = findViewById(R.id.chart2);
        chart3 = findViewById(R.id.chart3);
        chart4 = findViewById(R.id.chart4);
        chart5 = findViewById(R.id.chart5);
        chart20 = findViewById(R.id.chart20);
        chart11 = findViewById(R.id.chart11);
        chart16 = findViewById(R.id.chart16);
        chart17 = findViewById(R.id.chart17);
        chart18 = findViewById(R.id.chart18);
        chart19 = findViewById(R.id.chart19);
        chart12 = findViewById(R.id.chart12);
        chart13 = findViewById(R.id.chart13);
        chart14 = findViewById(R.id.chart14);
        chart15 = findViewById(R.id.chart15);
        chart21 = findViewById(R.id.chart21);
        chart26 = findViewById(R.id.chart26);
        chart27 = findViewById(R.id.chart27);
        chart28 = findViewById(R.id.chart28);
        chart29 = findViewById(R.id.chart29);
        chart22 = findViewById(R.id.chart22);
        chart23 = findViewById(R.id.chart23);
        chart24 = findViewById(R.id.chart24);
        chart25 = findViewById(R.id.chart25);
        chart30 = findViewById(R.id.chart30);
        chart.setDrawGridBackground(false);
        chart.getDescription().setEnabled(false);
        chart.setTouchEnabled(true);
        chart.setDragEnabled(true);
        chart.setScaleEnabled(true);
        chart.setPinchZoom(true);
        chart.getAxisLeft().setDrawGridLines(false);
        chart.getAxisRight().setEnabled(false);
        chart.setScaleYEnabled(false);
        chart.getXAxis().setAxisLineColor(Color.BLACK);
        chart.getXAxis().setTextColor(Color.WHITE);

        int count = 1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
           if("A".equalsIgnoreCase( mnlPasslist.unit))
           {
               float max_val = 6.0f;
               float min_val = -6.0f;


               for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
               {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                   if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                   {
                       min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                   }
               }
               if(max_val >6.0f)
               {
                   max_val = max_val*1.2f;
               }
               if(min_val <-6.0f)
               {
                   min_val = min_val*1.2f;
               }
               float max = max_val;
               if(max_val<Math.abs(min_val))
               {
                   max = Math.abs(min_val);
               }

               chart.getAxisLeft().setAxisMaximum(max);
               chart.getAxisLeft().setAxisMinimum(-max);
           }

           if("V".equalsIgnoreCase( mnlPasslist.unit))
           {
               chart.getAxisLeft().setAxisMaximum(264);
               chart.getAxisLeft().setAxisMinimum(-264);
               chart.getAxisLeft().setLabelCount(7, true);
           }
        }


        chart.getXAxis().setDrawAxisLine(true);
        chart.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart.getAxisLeft().setTextColor(Color.WHITE);
        chart.getXAxis().setDrawGridLines(true);
        chart.getAxisLeft().setDrawZeroLine(true);
        chart.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart.getXAxis().setDrawAxisLine(false);
        chart.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED1",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());

                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();

                int count = 1;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }

                    tv_show1_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });
        chart.invalidate();


        count = 2;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart2.getAxisLeft().setAxisMaximum(max);
                chart2.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart2.getAxisLeft().setAxisMaximum(264);
                chart2.getAxisLeft().setAxisMinimum(-264);
                chart2.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart2 = findViewById(R.id.chart2);
        chart2.setDrawGridBackground(false);
        chart2.getDescription().setEnabled(false);
        chart2.setTouchEnabled(true);
        chart2.setDragEnabled(true);
        chart2.setScaleEnabled(true);
        chart2.setPinchZoom(true);
        chart2.getAxisLeft().setDrawGridLines(false);
        chart2.getAxisRight().setEnabled(false);
        chart2.setScaleYEnabled(false);
        chart2.getXAxis().setAxisLineColor(Color.BLACK);
        chart2.getXAxis().setTextColor(Color.WHITE);
        chart2.getXAxis().setDrawAxisLine(true);
        chart2.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart2.getAxisLeft().setTextColor(Color.WHITE);
        chart2.getXAxis().setDrawGridLines(true);
        chart2.getAxisLeft().setDrawZeroLine(true);
        chart2.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart2.getXAxis().setDrawAxisLine(false);

        chart2.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED2",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();

                int count = 2;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show2_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately
        chart2.setPinchZoom(false);

        chart3 = findViewById(R.id.chart3);
        count = 3;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart3.getAxisLeft().setAxisMaximum(max);
                chart3.getAxisLeft().setAxisMinimum(-max);

            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart3.getAxisLeft().setAxisMaximum(264);
                chart3.getAxisLeft().setAxisMinimum(-264);
                chart3.getAxisLeft().setLabelCount(7, true);
            }
        }


        chart3.setDrawGridBackground(false);
        chart3.getDescription().setEnabled(false);
        chart3.setTouchEnabled(true);
        chart3.setDragEnabled(true);
        chart3.setScaleEnabled(true);
        chart3.setPinchZoom(true);
        chart3.getAxisLeft().setDrawGridLines(false);
        chart3.getAxisRight().setEnabled(false);
        chart3.setScaleYEnabled(false);
        chart3.getXAxis().setAxisLineColor(Color.BLACK);
        chart3.getXAxis().setTextColor(Color.WHITE);
        chart3.getXAxis().setDrawAxisLine(true);
        chart3.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart3.getAxisLeft().setTextColor(Color.WHITE);
        chart3.getXAxis().setDrawGridLines(true);
        chart3.getAxisLeft().setDrawZeroLine(true);
        chart3.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart3.getXAxis().setDrawAxisLine(false);

        chart3.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED3",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 3;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show3_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        //seekBarValues.setProgress(9000);

        chart3.invalidate();

        chart4 = findViewById(R.id.chart4);
        count = 4;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart4.getAxisLeft().setAxisMaximum(max);
                chart4.getAxisLeft().setAxisMinimum(-max);
            }

            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart4.getAxisLeft().setAxisMaximum(264);
                chart4.getAxisLeft().setAxisMinimum(-264);
                chart4.getAxisLeft().setLabelCount(7, true);
            }
        }

        chart4.setDrawGridBackground(false);
        chart4.getDescription().setEnabled(false);
        chart4.setTouchEnabled(true);
        chart4.setDragEnabled(true);
        chart4.setScaleEnabled(true);
        chart4.setPinchZoom(true);
        chart4.getAxisLeft().setDrawGridLines(false);
        chart4.getAxisRight().setEnabled(false);
        chart4.setScaleYEnabled(false);
        chart4.getXAxis().setAxisLineColor(Color.BLACK);
        chart4.getXAxis().setTextColor(Color.WHITE);
        chart4.getXAxis().setDrawAxisLine(true);
        chart4.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart4.getAxisLeft().setTextColor(Color.WHITE);
        chart4.getXAxis().setDrawGridLines(true);
        chart4.getAxisLeft().setDrawZeroLine(true);
        chart4.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart4.getXAxis().setDrawAxisLine(false);



        chart4.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED4",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 4;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show4_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        //seekBarValues.setProgress(9000);

        chart4.invalidate();


        count = 5;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart5.getAxisLeft().setAxisMaximum(max);
                chart5.getAxisLeft().setAxisMinimum(-max);

            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart5.getAxisLeft().setAxisMaximum(264);
                chart5.getAxisLeft().setAxisMinimum(-264);
//                chart5.getAxisLeft().setSpaceTop(33f);
                chart5.getAxisLeft().setLabelCount(7, true);

            }
        }

        chart5.setDrawGridBackground(false);
        chart5.getDescription().setEnabled(false);
        chart5.setTouchEnabled(true);
        chart5.setDragEnabled(true);
        chart5.setScaleEnabled(true);
        chart5.setPinchZoom(true);
        chart5.getAxisLeft().setDrawGridLines(false);
        chart5.getAxisRight().setEnabled(false);
        chart5.setScaleYEnabled(false);
        chart5.getXAxis().setAxisLineColor(Color.BLACK);
        chart5.getXAxis().setTextColor(Color.WHITE);
        chart5.getXAxis().setDrawAxisLine(true);
        chart5.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart5.getAxisLeft().setTextColor(Color.WHITE);
        chart5.getXAxis().setDrawGridLines(true);
        chart5.getAxisLeft().setDrawZeroLine(true);
        chart5.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart5.getXAxis().setDrawAxisLine(false);



        chart5.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED5",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 5;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show5_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        //seekBarValues.setProgress(9000);

        chart5.invalidate();


        count = 6;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart6.getAxisLeft().setAxisMaximum(max);
                chart6.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart6.getAxisLeft().setAxisMaximum(264);
                chart6.getAxisLeft().setAxisMinimum(-264);
                chart6.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart6 = findViewById(R.id.chart6);
        chart6.setDrawGridBackground(false);
        chart6.getDescription().setEnabled(false);
        chart6.setTouchEnabled(true);
        chart6.setDragEnabled(true);
        chart6.setScaleEnabled(true);
        chart6.setPinchZoom(true);
        chart6.getAxisLeft().setDrawGridLines(false);
        chart6.getAxisRight().setEnabled(false);
        chart6.setScaleYEnabled(false);
        chart6.getXAxis().setAxisLineColor(Color.BLACK);
        chart6.getXAxis().setTextColor(Color.WHITE);
        chart6.getXAxis().setDrawAxisLine(true);
        chart6.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart6.getAxisLeft().setTextColor(Color.WHITE);
        chart6.getXAxis().setDrawGridLines(true);
        chart6.getAxisLeft().setDrawZeroLine(true);
        chart6.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart6.getXAxis().setDrawAxisLine(false);


        chart6.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED6",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 6;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show6_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        //seekBarValues.setProgress(9000);

        chart6.invalidate();


        count = 7;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart7.getAxisLeft().setAxisMaximum(max);
                chart7.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart7.getAxisLeft().setAxisMaximum(264);
                chart7.getAxisLeft().setAxisMinimum(-264);
                chart7.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart7 = findViewById(R.id.chart7);
        chart7.setDrawGridBackground(false);
        chart7.getDescription().setEnabled(false);
        chart7.setTouchEnabled(true);
        chart7.setDragEnabled(true);
        chart7.setScaleEnabled(true);
        chart7.setPinchZoom(true);
        chart7.getAxisLeft().setDrawGridLines(false);
        chart7.getAxisRight().setEnabled(false);
        chart7.setScaleYEnabled(false);
        chart7.getXAxis().setAxisLineColor(Color.BLACK);
        chart7.getXAxis().setTextColor(Color.WHITE);
        chart7.getXAxis().setDrawAxisLine(true);
        chart7.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart7.getAxisLeft().setTextColor(Color.WHITE);
        chart7.getXAxis().setDrawGridLines(true);
        chart7.getAxisLeft().setDrawZeroLine(true);
        chart7.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart7.getXAxis().setDrawAxisLine(false);



        chart7.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED7",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 7;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show7_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately



        //seekBarValues.setProgress(9000);

        chart7.invalidate();


        count = 8;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart8.getAxisLeft().setAxisMaximum(max);
                chart8.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart8.getAxisLeft().setAxisMaximum(264);
                chart8.getAxisLeft().setAxisMinimum(-264);
                chart8.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart8 = findViewById(R.id.chart8);
        chart8.setDrawGridBackground(false);
        chart8.getDescription().setEnabled(false);
        chart8.setTouchEnabled(true);
        chart8.setDragEnabled(true);
        chart8.setScaleEnabled(true);
        chart8.setPinchZoom(true);
        chart8.getAxisLeft().setDrawGridLines(false);
        chart8.getAxisRight().setEnabled(false);
        chart8.setScaleYEnabled(false);
        chart8.getXAxis().setAxisLineColor(Color.BLACK);
        chart8.getXAxis().setTextColor(Color.WHITE);
        chart8.getXAxis().setDrawAxisLine(true);
        chart8.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart8.getAxisLeft().setTextColor(Color.WHITE);
        chart8.getXAxis().setDrawGridLines(true);
        chart8.getAxisLeft().setDrawZeroLine(true);
        chart8.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart8.getXAxis().setDrawAxisLine(false);



        chart8.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED8",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 8;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show8_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately



        //seekBarValues.setProgress(9000);

        chart8.invalidate();


        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart9.getAxisLeft().setAxisMaximum(max);
                chart9.getAxisLeft().setAxisMinimum(-max);
            }

            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart9.getAxisLeft().setAxisMaximum(264);
                chart9.getAxisLeft().setAxisMinimum(-264);
                chart9.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart9 = findViewById(R.id.chart9);
        chart9.setDrawGridBackground(false);
        chart9.getDescription().setEnabled(false);
        chart9.setTouchEnabled(true);
        chart9.setDragEnabled(true);
        chart9.setScaleEnabled(true);
        chart9.setPinchZoom(true);
        chart9.getAxisLeft().setDrawGridLines(false);
        chart9.getAxisRight().setEnabled(false);
        chart9.setScaleYEnabled(false);
        chart9.getXAxis().setAxisLineColor(Color.BLACK);
        chart9.getXAxis().setTextColor(Color.WHITE);
        chart9.getXAxis().setDrawAxisLine(true);
        chart9.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart9.getAxisLeft().setTextColor(Color.WHITE);
        chart9.getXAxis().setDrawGridLines(true);
        chart9.getAxisLeft().setDrawZeroLine(true);
        chart9.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart9.getXAxis().setDrawAxisLine(false);

        chart9.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED9",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 9;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show9_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        //seekBarValues.setProgress(9000);

        chart9.invalidate();


        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart10.getAxisLeft().setAxisMaximum(max);
                chart10.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart10.getAxisLeft().setAxisMaximum(264);
                chart10.getAxisLeft().setAxisMinimum(-264);
                chart10.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart10 = findViewById(R.id.chart10);
        chart10.setDrawGridBackground(false);
        chart10.getDescription().setEnabled(false);
        chart10.setTouchEnabled(true);
        chart10.setDragEnabled(true);
        chart10.setScaleEnabled(true);
        chart10.setPinchZoom(true);
        chart10.getAxisLeft().setDrawGridLines(false);
        chart10.getAxisRight().setEnabled(false);
        chart10.setScaleYEnabled(false);
        chart10.getXAxis().setAxisLineColor(Color.BLACK);
        chart10.getXAxis().setTextColor(Color.WHITE);
        chart10.getXAxis().setDrawAxisLine(true);
        chart10.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart10.getAxisLeft().setTextColor(Color.WHITE);
        chart10.getXAxis().setDrawGridLines(true);
        chart10.getAxisLeft().setDrawZeroLine(true);
        chart10.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart10.getXAxis().setDrawAxisLine(false);


        chart10.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED10",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 10;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show10_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });

        chart10.invalidate();



        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart11.getAxisLeft().setAxisMaximum(max);
                chart11.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart11.getAxisLeft().setAxisMaximum(264);
                chart11.getAxisLeft().setAxisMinimum(-264);
                chart11.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart11 = findViewById(R.id.chart11);
        chart11.setDrawGridBackground(false);
        chart11.getDescription().setEnabled(false);
        chart11.setTouchEnabled(true);
        chart11.setDragEnabled(true);
        chart11.setScaleEnabled(true);
        chart11.setPinchZoom(true);
        chart11.getAxisLeft().setDrawGridLines(false);
        chart11.getAxisRight().setEnabled(false);
        chart11.setScaleYEnabled(false);
        chart11.getXAxis().setAxisLineColor(Color.BLACK);
        chart11.getXAxis().setTextColor(Color.WHITE);
        chart11.getXAxis().setDrawAxisLine(true);
        chart11.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart11.getAxisLeft().setTextColor(Color.WHITE);
        chart11.getXAxis().setDrawGridLines(true);
        chart11.getAxisLeft().setDrawZeroLine(true);
        chart11.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart11.getXAxis().setDrawAxisLine(false);

        chart11.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED11",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 11;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show11_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately

        chart11.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart12.getAxisLeft().setAxisMaximum(max);
                chart12.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart12.getAxisLeft().setAxisMaximum(264);
                chart12.getAxisLeft().setLabelCount(7, true);
                chart12.getAxisLeft().setAxisMinimum(-264);
            }
        }
        chart12 = findViewById(R.id.chart12);
        chart12.setDrawGridBackground(false);
        chart12.getDescription().setEnabled(false);
        chart12.setTouchEnabled(true);
        chart12.setDragEnabled(true);
        chart12.setScaleEnabled(true);
        chart12.setPinchZoom(true);
        chart12.getAxisLeft().setDrawGridLines(false);
        chart12.getAxisRight().setEnabled(false);
        chart12.setScaleYEnabled(false);
        chart12.getXAxis().setAxisLineColor(Color.BLACK);
        chart12.getXAxis().setTextColor(Color.WHITE);
        chart12.getXAxis().setDrawAxisLine(true);
        chart12.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart12.getAxisLeft().setTextColor(Color.WHITE);
        chart12.getXAxis().setDrawGridLines(true);
        chart12.getAxisLeft().setDrawZeroLine(true);
        chart12.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart12.getXAxis().setDrawAxisLine(false);


        chart12.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED12",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 12;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show12_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });

        chart12.invalidate();


        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart13.getAxisLeft().setAxisMaximum(max);
                chart13.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart13.getAxisLeft().setAxisMaximum(264);
                chart13.getAxisLeft().setAxisMinimum(-264);
                chart13.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart13 = findViewById(R.id.chart13);
        chart13.setDrawGridBackground(false);
        chart13.getDescription().setEnabled(false);
        chart13.setTouchEnabled(true);
        chart13.setDragEnabled(true);
        chart13.setScaleEnabled(true);
        chart13.setPinchZoom(true);
        chart13.getAxisLeft().setDrawGridLines(false);
        chart13.getAxisRight().setEnabled(false);
        chart13.setScaleYEnabled(false);
        chart13.getXAxis().setAxisLineColor(Color.BLACK);
        chart13.getXAxis().setTextColor(Color.WHITE);
        chart13.getXAxis().setDrawAxisLine(true);
        chart13.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart13.getAxisLeft().setTextColor(Color.WHITE);
        chart13.getXAxis().setDrawGridLines(true);
        chart13.getAxisLeft().setDrawZeroLine(true);
        chart13.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart13.getXAxis().setDrawAxisLine(false);

        chart13.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED13",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 13;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show13_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if d
        chart13.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart14.getAxisLeft().setAxisMaximum(max);
                chart14.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart14.getAxisLeft().setAxisMaximum(264);
                chart14.getAxisLeft().setAxisMinimum(-264);
                chart14.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart14 = findViewById(R.id.chart14);
        chart14.setDrawGridBackground(false);
        chart14.getDescription().setEnabled(false);
        chart14.setTouchEnabled(true);
        chart14.setDragEnabled(true);
        chart14.setScaleEnabled(true);
        chart14.setPinchZoom(true);
        chart14.getAxisLeft().setDrawGridLines(false);
        chart14.getAxisRight().setEnabled(false);
        chart14.setScaleYEnabled(false);
        chart14.getXAxis().setAxisLineColor(Color.BLACK);
        chart14.getXAxis().setTextColor(Color.WHITE);
        chart14.getXAxis().setDrawAxisLine(true);
        chart14.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart14.getAxisLeft().setTextColor(Color.WHITE);
        chart14.getXAxis().setDrawGridLines(true);
        chart14.getAxisLeft().setDrawZeroLine(true);
        chart14.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart14.getXAxis().setDrawAxisLine(false);


        chart14.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED14",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 14;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show14_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        chart14.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart15.getAxisLeft().setAxisMaximum(max);
                chart15.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart15.getAxisLeft().setAxisMaximum(264);
                chart15.getAxisLeft().setAxisMinimum(-264);
                chart15.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart15 = findViewById(R.id.chart15);
        chart15.setDrawGridBackground(false);
        chart15.getDescription().setEnabled(false);
        chart15.setTouchEnabled(true);
        chart15.setDragEnabled(true);
        chart15.setScaleEnabled(true);
        chart15.setPinchZoom(true);
        chart15.getAxisLeft().setDrawGridLines(false);
        chart15.getAxisRight().setEnabled(false);
        chart15.setScaleYEnabled(false);
        chart15.getXAxis().setAxisLineColor(Color.BLACK);
        chart15.getXAxis().setTextColor(Color.WHITE);
        chart15.getXAxis().setDrawAxisLine(true);
        chart15.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart15.getAxisLeft().setTextColor(Color.WHITE);
        chart15.getXAxis().setDrawGridLines(true);
        chart15.getAxisLeft().setDrawZeroLine(true);
        chart15.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart15.getXAxis().setDrawAxisLine(false);


        chart15.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED15",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 15;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show15_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });

        chart15.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart16.getAxisLeft().setAxisMaximum(max);
                chart16.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart16.getAxisLeft().setAxisMaximum(264);
                chart16.getAxisLeft().setAxisMinimum(-264);
                chart16.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart16 = findViewById(R.id.chart16);
        chart16.setDrawGridBackground(false);
        chart16.getDescription().setEnabled(false);
        chart16.setTouchEnabled(true);
        chart16.setDragEnabled(true);
        chart16.setScaleEnabled(true);
        chart16.setPinchZoom(true);
        chart16.getAxisLeft().setDrawGridLines(false);
        chart16.getAxisRight().setEnabled(false);
        chart16.setScaleYEnabled(false);
        chart16.getXAxis().setAxisLineColor(Color.BLACK);
        chart16.getXAxis().setTextColor(Color.WHITE);
        chart16.getXAxis().setDrawAxisLine(true);
        chart16.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart16.getAxisLeft().setTextColor(Color.WHITE);
        chart16.getXAxis().setDrawGridLines(true);
        chart16.getAxisLeft().setDrawZeroLine(true);
        chart16.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart16.getXAxis().setDrawAxisLine(false);


        chart16.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED16",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 16;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show16_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        chart16.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart17.getAxisLeft().setAxisMaximum(max);
                chart17.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart17.getAxisLeft().setAxisMaximum(264);
                chart17.getAxisLeft().setAxisMinimum(-264);
                chart17.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart17 = findViewById(R.id.chart17);
        chart17.setDrawGridBackground(false);
        chart17.getDescription().setEnabled(false);
        chart17.setTouchEnabled(true);
        chart17.setDragEnabled(true);
        chart17.setScaleEnabled(true);
        chart17.setPinchZoom(true);
        chart17.getAxisLeft().setDrawGridLines(false);
        chart17.getAxisRight().setEnabled(false);
        chart17.setScaleYEnabled(false);
        chart17.getXAxis().setAxisLineColor(Color.BLACK);
        chart17.getXAxis().setTextColor(Color.WHITE);
        chart17.getXAxis().setDrawAxisLine(true);
        chart17.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart17.getAxisLeft().setTextColor(Color.WHITE);
        chart17.getXAxis().setDrawGridLines(true);
        chart17.getAxisLeft().setDrawZeroLine(true);
        chart17.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart17.getXAxis().setDrawAxisLine(false);


        chart17.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED17",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 17;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show17_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        chart17.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart18.getAxisLeft().setAxisMaximum(max);
                chart18.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart18.getAxisLeft().setAxisMaximum(264);
                chart18.getAxisLeft().setAxisMinimum(-264);
                chart18.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart18 = findViewById(R.id.chart18);
        chart18.setDrawGridBackground(false);
        chart18.getDescription().setEnabled(false);
        chart18.setTouchEnabled(true);
        chart18.setDragEnabled(true);
        chart18.setScaleEnabled(true);
        chart18.setPinchZoom(true);
        chart18.getAxisLeft().setDrawGridLines(false);
        chart18.getAxisRight().setEnabled(false);
        chart18.setScaleYEnabled(false);
        chart18.getXAxis().setAxisLineColor(Color.BLACK);
        chart18.getXAxis().setTextColor(Color.WHITE);
        chart18.getXAxis().setDrawAxisLine(true);
        chart18.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart18.getAxisLeft().setTextColor(Color.WHITE);
        chart18.getXAxis().setDrawGridLines(true);
        chart18.getAxisLeft().setDrawZeroLine(true);
        chart18.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart18.getXAxis().setDrawAxisLine(false);

        chart18.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED18",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());

                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 18;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                    }
                    String xnum = subData.xNum+"";
                    String ynum = subData.yNum+"";
                    tv_show18_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        //seekBarValues.setProgress(18000);

        chart18.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart19.getAxisLeft().setAxisMaximum(max);
                chart19.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart19.getAxisLeft().setAxisMaximum(264);
                chart19.getAxisLeft().setAxisMinimum(-264);
                chart19.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart19 = findViewById(R.id.chart19);
        chart19.setDrawGridBackground(false);
        chart19.getDescription().setEnabled(false);
        chart19.setTouchEnabled(true);
        chart19.setDragEnabled(true);
        chart19.setScaleEnabled(true);
        chart19.setPinchZoom(true);
        chart19.getAxisLeft().setDrawGridLines(false);
        chart19.getAxisRight().setEnabled(false);
        chart19.setScaleYEnabled(false);
        chart19.getXAxis().setAxisLineColor(Color.BLACK);
        chart19.getXAxis().setTextColor(Color.WHITE);
        chart19.getXAxis().setDrawAxisLine(true);
        chart19.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart19.getAxisLeft().setTextColor(Color.WHITE);
        chart19.getXAxis().setDrawGridLines(true);
        chart19.getAxisLeft().setDrawZeroLine(true);
        chart19.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart19.getXAxis().setDrawAxisLine(false);

        chart19.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED19",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 19;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show19_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if di

        chart19.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart20.getAxisLeft().setAxisMaximum(max);
                chart20.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart20.getAxisLeft().setAxisMaximum(264);
                chart20.getAxisLeft().setAxisMinimum(-264);
                chart20.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart20 = findViewById(R.id.chart20);
        chart20.setDrawGridBackground(false);
        chart20.getDescription().setEnabled(false);
        chart20.setTouchEnabled(true);
        chart20.setDragEnabled(true);
        chart20.setScaleEnabled(true);
        chart20.setPinchZoom(true);
        chart20.getAxisLeft().setDrawGridLines(false);
        chart20.getAxisRight().setEnabled(false);
        chart20.setScaleYEnabled(false);
        chart20.getXAxis().setAxisLineColor(Color.BLACK);
        chart20.getXAxis().setTextColor(Color.WHITE);
        chart20.getXAxis().setDrawAxisLine(true);
        chart20.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart20.getAxisLeft().setTextColor(Color.WHITE);
        chart20.getXAxis().setDrawGridLines(true);
        chart20.getAxisLeft().setDrawZeroLine(true);
        chart20.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart20.getXAxis().setDrawAxisLine(false);


        chart20.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED20",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 20;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show20_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        chart20.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart21.getAxisLeft().setAxisMaximum(max);
                chart21.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart21.getAxisLeft().setAxisMaximum(264);
                chart21.getAxisLeft().setLabelCount(7, true);
                chart21.getAxisLeft().setAxisMinimum(-264);
            }
        }
        chart21 = findViewById(R.id.chart21);
        chart21.setDrawGridBackground(false);
        chart21.getDescription().setEnabled(false);
        chart21.setTouchEnabled(true);
        chart21.setDragEnabled(true);
        chart21.setScaleEnabled(true);
        chart21.setPinchZoom(true);
        chart21.getAxisLeft().setDrawGridLines(false);
        chart21.getAxisRight().setEnabled(false);
        chart21.setScaleYEnabled(false);
        chart21.getXAxis().setAxisLineColor(Color.BLACK);
        chart21.getXAxis().setTextColor(Color.WHITE);
        chart21.getXAxis().setDrawAxisLine(true);
        chart21.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart21.getAxisLeft().setTextColor(Color.WHITE);
        chart21.getXAxis().setDrawGridLines(true);
        chart21.getAxisLeft().setDrawZeroLine(true);
        chart21.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart21.getXAxis().setDrawAxisLine(false);


        chart21.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED21",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 21;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show21_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        chart21.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart22.getAxisLeft().setAxisMaximum(max);
                chart22.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart22.getAxisLeft().setAxisMaximum(264);
                chart22.getAxisLeft().setAxisMinimum(-264);
                chart22.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart22 = findViewById(R.id.chart22);
        chart22.setDrawGridBackground(false);
        chart22.getDescription().setEnabled(false);
        chart22.setTouchEnabled(true);
        chart22.setDragEnabled(true);
        chart22.setScaleEnabled(true);
        chart22.setPinchZoom(true);
        chart22.getAxisLeft().setDrawGridLines(false);
        chart22.getAxisRight().setEnabled(false);
        chart22.setScaleYEnabled(false);
        chart22.getXAxis().setAxisLineColor(Color.BLACK);
        chart22.getXAxis().setTextColor(Color.WHITE);
        chart22.getXAxis().setDrawAxisLine(true);
        chart22.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart22.getAxisLeft().setTextColor(Color.WHITE);
        chart22.getXAxis().setDrawGridLines(true);
        chart22.getAxisLeft().setDrawZeroLine(true);
        chart22.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart22.getXAxis().setDrawAxisLine(false);

        chart22.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED22",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 22;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show22_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if d

        //seekBarValues.setProgress(22000);

        chart22.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart23.getAxisLeft().setAxisMaximum(max);
                chart23.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart23.getAxisLeft().setAxisMaximum(264);
                chart23.getAxisLeft().setAxisMinimum(-264);
                chart23.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart23 = findViewById(R.id.chart23);
        chart23.setDrawGridBackground(false);
        chart23.getDescription().setEnabled(false);
        chart23.setTouchEnabled(true);
        chart23.setDragEnabled(true);
        chart23.setScaleEnabled(true);
        chart23.setPinchZoom(true);
        chart23.getAxisLeft().setDrawGridLines(false);
        chart23.getAxisRight().setEnabled(false);
        chart23.setScaleYEnabled(false);
        chart23.getXAxis().setAxisLineColor(Color.BLACK);
        chart23.getXAxis().setTextColor(Color.WHITE);
        chart23.getXAxis().setDrawAxisLine(true);
        chart23.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart23.getAxisLeft().setTextColor(Color.WHITE);
        chart23.getXAxis().setDrawGridLines(true);
        chart23.getAxisLeft().setDrawZeroLine(true);
        chart23.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart23.getXAxis().setDrawAxisLine(false);

        chart23.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED23",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 23;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show23_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        chart23.invalidate();


        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart24.getAxisLeft().setAxisMaximum(max);
                chart24.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart24.getAxisLeft().setAxisMaximum(264);
                chart24.getAxisLeft().setAxisMinimum(-264);
                chart24.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart24 = findViewById(R.id.chart24);
        chart24.setDrawGridBackground(false);
        chart24.getDescription().setEnabled(false);
        chart24.setTouchEnabled(true);
        chart24.setDragEnabled(true);
        chart24.setScaleEnabled(true);
        chart24.setPinchZoom(true);
        chart24.getAxisLeft().setDrawGridLines(false);
        chart24.getAxisRight().setEnabled(false);
        chart24.setScaleYEnabled(false);
        chart24.getXAxis().setAxisLineColor(Color.BLACK);
        chart24.getXAxis().setTextColor(Color.WHITE);
        chart24.getXAxis().setDrawAxisLine(true);
        chart24.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart24.getAxisLeft().setTextColor(Color.WHITE);
        chart24.getXAxis().setDrawGridLines(true);
        chart24.getAxisLeft().setDrawZeroLine(true);
        chart24.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart24.getXAxis().setDrawAxisLine(false);


        chart24.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED24",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 24;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show24_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        chart24.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart25.getAxisLeft().setAxisMaximum(max);
                chart25.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart25.getAxisLeft().setAxisMaximum(264);
                chart25.getAxisLeft().setAxisMinimum(-264);
                chart25.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart25 = findViewById(R.id.chart25);
        chart25.setDrawGridBackground(false);
        chart25.getDescription().setEnabled(false);
        chart25.setTouchEnabled(true);
        chart25.setDragEnabled(true);
        chart25.setScaleEnabled(true);
        chart25.setPinchZoom(true);
        chart25.getAxisLeft().setDrawGridLines(false);
        chart25.getAxisRight().setEnabled(false);
        chart25.setScaleYEnabled(false);
        chart25.getXAxis().setAxisLineColor(Color.BLACK);
        chart25.getXAxis().setTextColor(Color.WHITE);
        chart25.getXAxis().setDrawAxisLine(true);
        chart25.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart25.getAxisLeft().setTextColor(Color.WHITE);
        chart25.getXAxis().setDrawGridLines(true);
        chart25.getAxisLeft().setDrawZeroLine(true);
        chart25.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart25.getXAxis().setDrawAxisLine(false);

        chart25.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED25",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 25;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show25_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if d

        chart25.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart26.getAxisLeft().setAxisMaximum(max);
                chart26.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart26.getAxisLeft().setAxisMaximum(264);
                chart26.getAxisLeft().setLabelCount(7, true);
                chart26.getAxisLeft().setAxisMinimum(-264);
            }
        }
        chart26 = findViewById(R.id.chart26);
        chart26.setDrawGridBackground(false);
        chart26.getDescription().setEnabled(false);
        chart26.setTouchEnabled(true);
        chart26.setDragEnabled(true);
        chart26.setScaleEnabled(true);
        chart26.setPinchZoom(true);
        chart26.getAxisLeft().setDrawGridLines(false);
        chart26.getAxisRight().setEnabled(false);
        chart26.setScaleYEnabled(false);
        chart26.getXAxis().setAxisLineColor(Color.BLACK);
        chart26.getXAxis().setTextColor(Color.WHITE);
        chart26.getXAxis().setDrawAxisLine(true);
        chart26.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart26.getAxisLeft().setTextColor(Color.WHITE);
        chart26.getXAxis().setDrawGridLines(true);
        chart26.getAxisLeft().setDrawZeroLine(true);
        chart26.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart26.getXAxis().setDrawAxisLine(false);


        chart26.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED26",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 26;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show26_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately

        chart26.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart27.getAxisLeft().setAxisMaximum(max);
                chart27.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart27.getAxisLeft().setAxisMaximum(264);
                chart27.getAxisLeft().setLabelCount(7, true);
                chart27.getAxisLeft().setAxisMinimum(-264);
            }
        }
        chart27 = findViewById(R.id.chart27);
        chart27.setDrawGridBackground(false);
        chart27.getDescription().setEnabled(false);
        chart27.setTouchEnabled(true);
        chart27.setDragEnabled(true);
        chart27.setScaleEnabled(true);
        chart27.setPinchZoom(true);
        chart27.getAxisLeft().setDrawGridLines(false);
        chart27.getAxisRight().setEnabled(false);
        chart27.setScaleYEnabled(false);
        chart27.getXAxis().setAxisLineColor(Color.BLACK);
        chart27.getXAxis().setTextColor(Color.WHITE);
        chart27.getXAxis().setDrawAxisLine(true);
        chart27.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart27.getAxisLeft().setTextColor(Color.WHITE);
        chart27.getXAxis().setDrawGridLines(true);
        chart27.getAxisLeft().setDrawZeroLine(true);
        chart27.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart27.getXAxis().setDrawAxisLine(false);

        chart27.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED27",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 27;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show27_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if d

        chart27.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart28.getAxisLeft().setAxisMaximum(max);
                chart28.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart28.getAxisLeft().setAxisMaximum(264);
                chart28.getAxisLeft().setAxisMinimum(-264);
                chart28.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart28 = findViewById(R.id.chart28);
        chart28.setDrawGridBackground(false);
        chart28.getDescription().setEnabled(false);
        chart28.setTouchEnabled(true);
        chart28.setDragEnabled(true);
        chart28.setScaleEnabled(true);
        chart28.setPinchZoom(true);
        chart28.getAxisLeft().setDrawGridLines(false);
        chart28.getAxisRight().setEnabled(false);
        chart28.setScaleYEnabled(false);
        chart28.getXAxis().setAxisLineColor(Color.BLACK);
        chart28.getXAxis().setTextColor(Color.WHITE);
        chart28.getXAxis().setDrawAxisLine(true);
        chart28.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart28.getAxisLeft().setTextColor(Color.WHITE);
        chart28.getXAxis().setDrawGridLines(true);
        chart28.getAxisLeft().setDrawZeroLine(true);
        chart28.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart28.getXAxis().setDrawAxisLine(false);


        chart28.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED28",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 28;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show28_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if

        chart28.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart29.getAxisLeft().setAxisMaximum(max);
                chart29.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart29.getAxisLeft().setAxisMaximum(264);
                chart29.getAxisLeft().setAxisMinimum(-264);
                chart29.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart29 = findViewById(R.id.chart29);
        chart29.setDrawGridBackground(false);
        chart29.getDescription().setEnabled(false);
        chart29.setTouchEnabled(true);
        chart29.setDragEnabled(true);
        chart29.setScaleEnabled(true);
        chart29.setPinchZoom(true);
        chart29.getAxisLeft().setDrawGridLines(false);
        chart29.getAxisRight().setEnabled(false);
        chart29.setScaleYEnabled(false);
        chart29.getXAxis().setAxisLineColor(Color.BLACK);
        chart29.getXAxis().setTextColor(Color.WHITE);
        chart29.getXAxis().setDrawAxisLine(true);
        chart29.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart29.getAxisLeft().setTextColor(Color.WHITE);
        chart29.getXAxis().setDrawGridLines(true);
        chart29.getAxisLeft().setDrawZeroLine(true);
        chart29.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart29.getXAxis().setDrawAxisLine(false);

        chart29.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED29",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 29;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show29_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }
            }

            @Override
            public void onNothingSelected() {
            }
        });
// if disabled, scaling can be done on x- and y-axis separately


        chart29.invalidate();

        count = count+1;
        if(info.mnlPassList.size()>(count-1)) {
            PassInfo mnlPasslist = info.mnlPassList.get(count+"");
            if("A".equalsIgnoreCase( mnlPasslist.unit))
            {
                float max_val = 6.0f;
                float min_val = -6.0f;


                for(int i=0;i<mnlPasslist.mnlPassSubList.size();i++)
                {
                    if(mnlPasslist.mnlPassSubList.get(i).yNum>max_val)
                    {
                        max_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                    if(mnlPasslist.mnlPassSubList.get(i).yNum<min_val)
                    {
                        min_val = mnlPasslist.mnlPassSubList.get(i).yNum;
                    }
                }
                if(max_val >6.0f)
                {
                    max_val = max_val*1.2f;
                }
                if(min_val <-6.0f)
                {
                    min_val = min_val*1.2f;
                }
                float max = max_val;
                if(max_val<Math.abs(min_val))
                {
                    max = Math.abs(min_val);
                }

                chart30.getAxisLeft().setAxisMaximum(max);
                chart30.getAxisLeft().setAxisMinimum(-max);
            }
            if("V".equalsIgnoreCase( mnlPasslist.unit))
            {
                chart30.getAxisLeft().setAxisMaximum(264);
                chart30.getAxisLeft().setAxisMinimum(-264);
                chart30.getAxisLeft().setLabelCount(7, true);
            }
        }
        chart30 = findViewById(R.id.chart30);
        chart30.setDrawGridBackground(false);
        chart30.getDescription().setEnabled(false);
        chart30.setTouchEnabled(true);
        chart30.setDragEnabled(true);
        chart30.setScaleEnabled(true);
        chart30.setPinchZoom(true);
        chart30.getAxisLeft().setDrawGridLines(false);
        chart30.getAxisRight().setEnabled(false);
        chart30.setScaleYEnabled(false);
        chart30.getXAxis().setAxisLineColor(Color.BLACK);
        chart30.getXAxis().setTextColor(Color.WHITE);
        chart30.getXAxis().setDrawAxisLine(true);
        chart30.getAxisLeft().setAxisLineColor(Color.BLACK);
        chart30.getAxisLeft().setTextColor(Color.WHITE);
        chart30.getXAxis().setDrawGridLines(true);
        chart30.getAxisLeft().setDrawZeroLine(true);
        chart30.getAxisLeft().setAxisLineColor(Color.WHITE);
        chart30.getXAxis().setDrawAxisLine(false);

        chart30.setOnChartValueSelectedListener(new OnChartValueSelectedListener() {
            @Override
            public void onValueSelected(Entry e, Highlight h) {
                Log.i("VAL SELECTED30",
                        "Value: " + e.getY() + ", xIndex: " + e.getX()
                                + ", DataSet index: " + h.getDataSetIndex());
                int i_num = (int)e.getX();
                PassInfoSubData subData = new PassInfoSubData();
                int count = 30;
                if((info.mnlPassList.size()+info.szlPassList.size())>(count-1) ) {
                    chart.setVisibility(View.VISIBLE);
                    String xnum,ynum = "";
                    if (info.mnlPassList.size() > count-1) {
                        PassInfo mnlPasslist = info.mnlPassList.get(count+"");
                        subData = mnlPasslist.mnlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = sumY(mnlPasslist,i_num);
                    } else {

                        int num = count - info.mnlPassList.size();
                        PassInfo mnlPasslist = info.szlPassList.get(num+"");
                        subData = mnlPasslist.szlPassSubList.get(i_num);
                        xnum = subData.xNum+"";
                        ynum = subData.yNum+"";
                    }
                    tv_show30_1.setText("x:"+(int)e.getX()+" \ny:"+ ynum);
                }

            }

            @Override
            public void onNothingSelected() {
            }
        });
// if d


        seekBarValues.setProgress(9000);

        chart30.invalidate();

    }


    private final RectF mOnValueSelectedRectF = new RectF();



    private String color_1="#FFFF00";
    private String color_2="#00FF00";
    private String color_3="#FF0000";

    private String color_4 = "#0000FF";
    private void setData1() {

        ArrayList<Entry> values = new ArrayList<>();
        ArrayList<Entry> values2 = new ArrayList<>();
        ArrayList<Entry> values3 = new ArrayList<>();
        ArrayList<Entry> values4 = new ArrayList<>();
        ArrayList<Entry> values5 = new ArrayList<>();
        ArrayList<Entry> values6 = new ArrayList<>();
        ArrayList<Entry> values7 = new ArrayList<>();
        ArrayList<Entry> values8 = new ArrayList<>();
        ArrayList<Entry> values9 = new ArrayList<>();
        ArrayList<Entry> values10 = new ArrayList<>();
        ArrayList<Entry> values11 = new ArrayList<>();
        ArrayList<Entry> values12 = new ArrayList<>();
        ArrayList<Entry> values13 = new ArrayList<>();
        ArrayList<Entry> values14 = new ArrayList<>();
        ArrayList<Entry> values15 = new ArrayList<>();
        ArrayList<Entry> values16 = new ArrayList<>();
        ArrayList<Entry> values17 = new ArrayList<>();
        ArrayList<Entry> values18 = new ArrayList<>();
        ArrayList<Entry> values19 = new ArrayList<>();
        ArrayList<Entry> values20 = new ArrayList<>();
        ArrayList<Entry> values21 = new ArrayList<>();
        ArrayList<Entry> values22 = new ArrayList<>();
        ArrayList<Entry> values23 = new ArrayList<>();
        ArrayList<Entry> values24 = new ArrayList<>();
        ArrayList<Entry> values25 = new ArrayList<>();
        ArrayList<Entry> values26 = new ArrayList<>();
        ArrayList<Entry> values27= new ArrayList<>();
        ArrayList<Entry> values28 = new ArrayList<>();
        ArrayList<Entry> values29 = new ArrayList<>();
        ArrayList<Entry> values30 = new ArrayList<>();

        chart.setVisibility(View.GONE);
        chart2.setVisibility(View.GONE);
        chart3.setVisibility(View.GONE);
        chart5.setVisibility(View.GONE);
        chart4.setVisibility(View.GONE);
        chart6.setVisibility(View.GONE);
        chart7.setVisibility(View.GONE);
        chart8.setVisibility(View.GONE);
        chart9.setVisibility(View.GONE);

        chart10.setVisibility(View.GONE);
        chart11.setVisibility(View.GONE);
        chart12.setVisibility(View.GONE);
        chart13.setVisibility(View.GONE);
        chart15.setVisibility(View.GONE);
        chart14.setVisibility(View.GONE);
        chart16.setVisibility(View.GONE);
        chart17.setVisibility(View.GONE);
        chart18.setVisibility(View.GONE);
        chart19.setVisibility(View.GONE);

        chart20.setVisibility(View.GONE);
        chart21.setVisibility(View.GONE);
        chart22.setVisibility(View.GONE);
        chart23.setVisibility(View.GONE);
        chart25.setVisibility(View.GONE);
        chart24.setVisibility(View.GONE);
        chart26.setVisibility(View.GONE);
        chart27.setVisibility(View.GONE);
        chart28.setVisibility(View.GONE);
        chart29.setVisibility(View.GONE);

        chart30.setVisibility(View.GONE);

        if(info == null)
        {
            return;
        }
        if(info.mnlPassList == null)
        {
            info.mnlPassList = new HashMap<>();
        }
        if(info.szlPassList == null)
        {
            info.szlPassList = new HashMap<>();
        }

        String color = color_4;
        if((info.mnlPassList.size()+info.szlPassList.size())>0 ) {
            chart.setVisibility(View.VISIBLE);
            ll_1.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>0) {

                tv_show1.setText( "序号： " + info.mnlPassList.get("1").passName);
                if("A".equalsIgnoreCase(info.mnlPassList.get("1").phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get("1").phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get("1").phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("1").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("1").mnlPassSubList.get(i).yNum;
                    values.add(new Entry(i, val));
                }
            }else{

                int num = 1-info.mnlPassList.size();
                tv_show1.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values.add(new Entry(i, val));
                }
            }

            // create a dataset and give it a type
            LineDataSet set1 = new LineDataSet(values, "DataSet 1");
            set1.setColor(Color.WHITE);
            set1.setLineWidth(0.5f);
            set1.setDrawValues(false);
            set1.setDrawCircles(false);
            set1.setHighLightColor(Color.parseColor("#FF00FF"));
            set1.setMode(LineDataSet.Mode.LINEAR);
            tv_show1.setTextColor(Color.parseColor(color));
            tv_show1_1.setTextColor(Color.parseColor(color));
            set1.setColor(Color.parseColor(color));
            set1.setDrawFilled(false);
            // create a data object with the data sets
            LineData data = new LineData(set1);

            // set data
            chart.setData(data);
            Legend l = chart.getLegend();
            l.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>1 ) {
            chart2.setVisibility(View.VISIBLE);
            ll_2.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>1) {
                tv_show2.setText( "序号： " + info.mnlPassList.get("2").passName);
                if("A".equalsIgnoreCase(info.mnlPassList.get("2").phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get("2").phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get("2").phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("2").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("2").mnlPassSubList.get(i).yNum;
                    values2.add(new Entry(i, val));
                }
            }else{

                int num = 2-info.mnlPassList.size();
                tv_show2.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values2.add(new Entry(i, val));
                }
            }


            LineDataSet set2 = new LineDataSet(values2, "DataSet 2");
            set2.setColor(Color.WHITE);
            set2.setLineWidth(0.5f);
            set2.setDrawValues(false);
            set2.setDrawCircles(false);
            set2.setHighLightColor(Color.parseColor("#FF00FF"));
            set2.setMode(LineDataSet.Mode.LINEAR);
            tv_show2.setTextColor(Color.parseColor(color));
            tv_show2_1.setTextColor(Color.parseColor(color));
            set2.setColor(Color.parseColor(color));
            set2.setDrawFilled(false);
            // create a data object with the data sets
            LineData data2 = new LineData(set2);

            chart2.setData(data2);
            // get the legend (only possible after setting data)
            Legend l2 = chart2.getLegend();
            l2.setEnabled(false);
        }
        if((info.mnlPassList.size()+info.szlPassList.size())>2 ) {
            chart3.setVisibility(View.VISIBLE);
            ll_3.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>2) {
                tv_show3.setText( "序号： " + info.mnlPassList.get("3").passName);
                if("A".equalsIgnoreCase(info.mnlPassList.get("3").phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get("3").phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get("3").phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("3").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("3").mnlPassSubList.get(i).yNum;
                    values3.add(new Entry(i, val));
                }
            }else{

                int num = 3-info.mnlPassList.size();
                tv_show3.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values3.add(new Entry(i, val));
                }
            }


            LineDataSet set3 = new LineDataSet(values3, "DataSet 3");
            set3.setColor(Color.WHITE);
            set3.setLineWidth(0.5f);
            set3.setDrawValues(false);
            set3.setDrawCircles(false);
            set3.setHighLightColor(Color.parseColor("#FF00FF"));
            set3.setMode(LineDataSet.Mode.LINEAR);
            set3.setDrawFilled(false);
            tv_show3.setTextColor(Color.parseColor(color));
            tv_show3_1.setTextColor(Color.parseColor(color));
            set3.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data3 = new LineData(set3);

            chart3.setData(data3);
            // get the legend (only possible after setting data)
            Legend l3 = chart3.getLegend();
            l3.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>3 ) {
            chart4.setVisibility(View.VISIBLE);
            ll_4.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>3) {
                tv_show4.setText( "序号： " + info.mnlPassList.get("4").passName);
                if("A".equalsIgnoreCase(info.mnlPassList.get("4").phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get("4").phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get("4").phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("4").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("4").mnlPassSubList.get(i).yNum;
                    values4.add(new Entry(i, val));
                }
            }else{

                int num = 4-info.mnlPassList.size();
                tv_show4.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values4.add(new Entry(i, val));
                }
            }


            LineDataSet set4 = new LineDataSet(values4, "DataSet 4");
            set4.setColor(Color.WHITE);
            set4.setLineWidth(0.5f);
            set4.setDrawValues(false);
            set4.setDrawCircles(false);
            set4.setHighLightColor(Color.parseColor("#FF00FF"));
            set4.setMode(LineDataSet.Mode.LINEAR);
            set4.setDrawFilled(false);
            tv_show4.setTextColor(Color.parseColor(color));
            tv_show4_1.setTextColor(Color.parseColor(color));
            set4.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data4 = new LineData(set4);

            chart4.setData(data4);
            // get the legend (only possible after setting data)
            Legend l4 = chart4.getLegend();
            l4.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>4 ) {
            chart5.setVisibility(View.VISIBLE);
            ll_5.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>4) {
                tv_show5.setText( "序号： " + info.mnlPassList.get("5").passName);
                if("A".equalsIgnoreCase(info.mnlPassList.get("5").phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get("5").phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get("5").phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("5").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("5").mnlPassSubList.get(i).yNum;
                    values5.add(new Entry(i, val));
                }
            }else{

                int num = 5-info.mnlPassList.size();
                tv_show5.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values5.add(new Entry(i, val));
                }
            }


            LineDataSet set5 = new LineDataSet(values5, "DataSet 5");
            set5.setColor(Color.WHITE);
            set5.setLineWidth(0.5f);
            set5.setDrawValues(false);
            set5.setDrawCircles(false);
            set5.setHighLightColor(Color.parseColor("#FF00FF"));
            set5.setMode(LineDataSet.Mode.LINEAR);
            tv_show5.setTextColor(Color.parseColor(color));
            tv_show5_1.setTextColor(Color.parseColor(color));
            set5.setColor(Color.parseColor(color));
            set5.setDrawFilled(false);
            // create a data object with the data sets
            LineData data5 = new LineData(set5);

            chart5.setData(data5);
            // get the legend (only possible after setting data)
            Legend l5 = chart5.getLegend();
            l5.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>5 ) {
            chart6.setVisibility(View.VISIBLE);
            ll_6.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(6-1)) {
                tv_show6.setText( "序号： " + info.mnlPassList.get("6").passName);
                if("A".equalsIgnoreCase(info.mnlPassList.get("6").phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get("6").phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get("6").phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("6").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("6").mnlPassSubList.get(i).yNum;
                    values6.add(new Entry(i, val));
                }
            }else{

                int num = 6-info.mnlPassList.size();
                tv_show6.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values6.add(new Entry(i, val));
                }
            }


            LineDataSet set6 = new LineDataSet(values6, "DataSet 6");
            set6.setColor(Color.WHITE);
            set6.setLineWidth(0.5f);
            set6.setDrawValues(false);
            set6.setDrawCircles(false);
            set6.setHighLightColor(Color.parseColor("#FF00FF"));
            set6.setMode(LineDataSet.Mode.LINEAR);
            set6.setDrawFilled(false);
            tv_show6.setTextColor(Color.parseColor(color));
            tv_show6_1.setTextColor(Color.parseColor(color));
            set6.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data6 = new LineData(set6);

            chart6.setData(data6);
            // get the legend (only possible after setting data)
            Legend l6 = chart6.getLegend();
            l6.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>6 ) {
            chart7.setVisibility(View.VISIBLE);
            ll_7.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(7-1)) {
                tv_show7.setText( "序号： " + info.mnlPassList.get("7").passName);
                String  num = "7";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("7").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("7").mnlPassSubList.get(i).yNum;
                    values7.add(new Entry(i, val));
                }
            }else{

                int num = 7-info.mnlPassList.size();
                tv_show7.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values7.add(new Entry(i, val));
                }
            }


            LineDataSet set7 = new LineDataSet(values7, "DataSet 7");
            set7.setColor(Color.WHITE);
            set7.setLineWidth(0.5f);
            set7.setDrawValues(false);
            set7.setDrawCircles(false);
            set7.setHighLightColor(Color.parseColor("#FF00FF"));
            set7.setMode(LineDataSet.Mode.LINEAR);
            set7.setDrawFilled(false);
            tv_show7.setTextColor(Color.parseColor(color));
            tv_show7_1.setTextColor(Color.parseColor(color));
            set7.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data7 = new LineData(set7);

            chart7.setData(data7);
            // get the legend (only possible after setting data)
            Legend l7 = chart7.getLegend();
            l7.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>7 ) {
            chart8.setVisibility(View.VISIBLE);
            ll_8.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(8-1)) {
                tv_show8.setText( "序号： " + info.mnlPassList.get("8").passName);
                String  num = "8";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("8").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("8").mnlPassSubList.get(i).yNum;
                    values8.add(new Entry(i, val));
                }
            }else{

                int num = 8-info.mnlPassList.size();
                tv_show8.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values8.add(new Entry(i, val));
                }
            }


            LineDataSet set8 = new LineDataSet(values8, "DataSet 8");
            set8.setColor(Color.WHITE);
            set8.setLineWidth(0.5f);
            set8.setDrawValues(false);
            set8.setDrawCircles(false);
            set8.setMode(LineDataSet.Mode.LINEAR);
            set8.setDrawFilled(false);
            set8.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show8.setTextColor(Color.parseColor(color));
            tv_show8_1.setTextColor(Color.parseColor(color));
            set8.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data8 = new LineData(set8);

            chart8.setData(data8);
            // get the legend (only possible after setting data)
            Legend l8 = chart8.getLegend();
            l8.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>8 ) {
            chart9.setVisibility(View.VISIBLE);
            ll_9.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(9-1)) {
                tv_show9.setText( "序号： " + info.mnlPassList.get("9").passName);
                String  num = "9";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("9").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("9").mnlPassSubList.get(i).yNum;
                    values9.add(new Entry(i, val));
                }
            }else{

               int num = 9-info.mnlPassList.size();
                PassInfo infotmp1 =  info.szlPassList.get(num+"");
                tv_show9.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values9.add(new Entry(i, val));
                }
            }


            LineDataSet set9 = new LineDataSet(values9, "DataSet 9");
            set9.setColor(Color.WHITE);
            set9.setLineWidth(0.5f);
            set9.setDrawValues(false);
            set9.setDrawCircles(false);
            set9.setHighLightColor(Color.parseColor("#FF00FF"));
            set9.setMode(LineDataSet.Mode.LINEAR);
            set9.setDrawFilled(false);
            tv_show9.setTextColor(Color.parseColor(color));
            tv_show9_1.setTextColor(Color.parseColor(color));
            set9.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data9 = new LineData(set9);

            chart9.setData(data9);
            // get the legend (only possible after setting data)
            Legend l9 = chart9.getLegend();
            l9.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>9 ) {
            chart10.setVisibility(View.VISIBLE);
            ll_10.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(10-1)) {
                tv_show10.setText( "序号： " + info.mnlPassList.get("10").passName);
                String  num = "10";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("10").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("10").mnlPassSubList.get(i).yNum;
                    values10.add(new Entry(i, val));
                }
            }else{

                int num = 10-info.mnlPassList.size();
                tv_show10.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values10.add(new Entry(i, val));
                }
            }


            LineDataSet set10 = new LineDataSet(values10, "DataSet 10");
            set10.setColor(Color.WHITE);
            set10.setLineWidth(0.5f);
            set10.setDrawValues(false);
            set10.setHighLightColor(Color.parseColor("#FF00FF"));
            set10.setDrawCircles(false);
            set10.setMode(LineDataSet.Mode.LINEAR);
            set10.setDrawFilled(false);
            tv_show10.setTextColor(Color.parseColor(color));
            tv_show10_1.setTextColor(Color.parseColor(color));
            set10.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data10 = new LineData(set10);

            chart10.setData(data10);
            // get the legend (only possible after setting data)
            Legend l10 = chart10.getLegend();
            l10.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>10 ) {
            chart11.setVisibility(View.VISIBLE);
            ll_11.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(11-1)) {
                tv_show11.setText( "序号： " + info.mnlPassList.get("11").passName);
                String  num = "11";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("11").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("11").mnlPassSubList.get(i).yNum;
                    values11.add(new Entry(i, val));
                }
            }else{

                int num = 11-info.mnlPassList.size();



                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                tv_show11.setText( "序号： " + info.szlPassList.get(num+"").passName);
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values11.add(new Entry(i, val));
                }
            }


            LineDataSet set11 = new LineDataSet(values11, "DataSet 11");
            set11.setColor(Color.WHITE);
            set11.setLineWidth(0.5f);
            set11.setDrawValues(false);
            set11.setDrawCircles(false);
            set11.setHighLightColor(Color.parseColor("#FF00FF"));
            set11.setMode(LineDataSet.Mode.LINEAR);
            set11.setDrawFilled(false);
            tv_show11.setTextColor(Color.parseColor(color));
            tv_show11_1.setTextColor(Color.parseColor(color));
            set11.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data11 = new LineData(set11);

            chart11.setData(data11);
            // get the legend (only possible after setting data)
            Legend l11 = chart11.getLegend();
            l11.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>11 ) {
            chart12.setVisibility(View.VISIBLE);
            ll_12.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(12-1)) {
                tv_show12.setText( "序号： " + info.mnlPassList.get("12").passName);
                String  num = "12";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("12").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("12").mnlPassSubList.get(i).yNum;
                    values12.add(new Entry(i, val));
                }
            }else{

                int num = 12-info.mnlPassList.size();
                tv_show12.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values12.add(new Entry(i, val));
                }
            }


            LineDataSet set12 = new LineDataSet(values12, "DataSet 12");
            set12.setColor(Color.WHITE);
            set12.setLineWidth(0.5f);
            set12.setDrawValues(false);
            set12.setHighLightColor(Color.parseColor("#FF00FF"));
            set12.setDrawCircles(false);
            set12.setMode(LineDataSet.Mode.LINEAR);
            set12.setDrawFilled(false);
            tv_show12.setTextColor(Color.parseColor(color));
            tv_show12_1.setTextColor(Color.parseColor(color));
            set12.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data12 = new LineData(set12);

            chart12.setData(data12);
            // get the legend (only possible after setting data)
            Legend l12 = chart12.getLegend();
            l12.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>12 ) {
            chart13.setVisibility(View.VISIBLE);
            ll_13.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(13-1)) {
                tv_show13.setText( "序号： " + info.mnlPassList.get("13").passName);
                String  num = "13";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("13").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("13").mnlPassSubList.get(i).yNum;
                    values13.add(new Entry(i, val));
                }
            }else{

                int num = 13-info.mnlPassList.size();
                tv_show13.setText( "序号： " + info.szlPassList.get(num+"").passName);

                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values13.add(new Entry(i, val));
                }
            }


            LineDataSet set13 = new LineDataSet(values13, "DataSet 13");
            set13.setColor(Color.WHITE);
            set13.setLineWidth(0.5f);
            set13.setDrawValues(false);
            set13.setDrawCircles(false);
            set13.setMode(LineDataSet.Mode.LINEAR);
            set13.setDrawFilled(false);
            set13.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show13.setTextColor(Color.parseColor(color));
            tv_show13_1.setTextColor(Color.parseColor(color));
            set13.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data13 = new LineData(set13);

            chart13.setData(data13);
            // get the legend (only possible after setting data)
            Legend l13 = chart13.getLegend();
            l13.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>13 ) {
            chart14.setVisibility(View.VISIBLE);
            ll_14.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(14-1)) {
                tv_show14.setText( "序号： " + info.mnlPassList.get("14").passName);
                String  num = "14";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("14").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("14").mnlPassSubList.get(i).yNum;
                    values14.add(new Entry(i, val));
                }
            }else{

                int num = 14-info.mnlPassList.size();
                tv_show14.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values14.add(new Entry(i, val));
                }
            }


            LineDataSet set14 = new LineDataSet(values14, "DataSet 14");
            set14.setColor(Color.WHITE);
            set14.setLineWidth(0.5f);
            set14.setDrawValues(false);
            set14.setDrawCircles(false);
            set14.setHighLightColor(Color.parseColor("#FF00FF"));
            set14.setMode(LineDataSet.Mode.LINEAR);
            set14.setDrawFilled(false);
            tv_show14.setTextColor(Color.parseColor(color));
            tv_show14_1.setTextColor(Color.parseColor(color));
            set14.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data14 = new LineData(set14);

            chart14.setData(data14);
            // get the legend (only possible after setting data)
            Legend l14 = chart14.getLegend();
            l14.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>14 ) {
            chart15.setVisibility(View.VISIBLE);
            ll_15.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(15-1)) {
                tv_show15.setText( "序号： " + info.mnlPassList.get("15").passName);
                String  num = "15";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("15").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("15").mnlPassSubList.get(i).yNum;
                    values15.add(new Entry(i, val));
                }
            }else{

                int num = 15-info.mnlPassList.size();
                tv_show15.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values15.add(new Entry(i, val));
                }
            }


            LineDataSet set15 = new LineDataSet(values15, "DataSet 15");
            set15.setColor(Color.WHITE);
            set15.setLineWidth(0.5f);
            set15.setDrawValues(false);
            set15.setDrawCircles(false);
            set15.setMode(LineDataSet.Mode.LINEAR);
            set15.setDrawFilled(false);
            set15.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show15.setTextColor(Color.parseColor(color));
            tv_show15_1.setTextColor(Color.parseColor(color));
            set15.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data15 = new LineData(set15);

            chart15.setData(data15);
            // get the legend (only possible after setting data)
            Legend l15 = chart15.getLegend();
            l15.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>15 ) {
            chart16.setVisibility(View.VISIBLE);
            ll_16.setVisibility(View.VISIBLE);
            color = color_4;

            if(info.mnlPassList.size()>(16-1)) {
                tv_show16.setText( "序号： " + info.mnlPassList.get("16").passName);
                String  num = "16";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("16").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("16").mnlPassSubList.get(i).yNum;
                    values16.add(new Entry(i, val));
                }
            }else{

                int num = 16-info.mnlPassList.size();
                tv_show16.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values16.add(new Entry(i, val));
                }
            }


            LineDataSet set16 = new LineDataSet(values16, "DataSet 16");
            set16.setColor(Color.WHITE);
            set16.setLineWidth(0.5f);
            set16.setDrawValues(false);
            set16.setDrawCircles(false);
            set16.setMode(LineDataSet.Mode.LINEAR);
            set16.setDrawFilled(false);
            set16.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show16.setTextColor(Color.parseColor(color));
            tv_show16_1.setTextColor(Color.parseColor(color));
            set16.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data16 = new LineData(set16);

            chart16.setData(data16);
            // get the legend (only possible after setting data)
            Legend l16 = chart16.getLegend();
            l16.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>16 ) {
            chart17.setVisibility(View.VISIBLE);
            ll_17.setVisibility(View.VISIBLE);
            color = color_4;
            if (info.mnlPassList.size() > (17 - 1)) {
                tv_show17.setText( "序号： " + info.mnlPassList.get("17").passName);
                String  num = "17";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("17").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("17").mnlPassSubList.get(i).yNum;
                    values17.add(new Entry(i, val));
                }
            } else {

                int num = 17 - info.mnlPassList.size();
                tv_show17.setText( "序号： " + info.szlPassList.get(num + "").passName);
                if (info.szlPassList.get(num + "") == null) {
                    return;
                }
                for (int i = 0; i < info.szlPassList.get(num + "").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num + "").szlPassSubList.get(i).yNum;
                    values17.add(new Entry(i, val));
                }
            }


            LineDataSet set17 = new LineDataSet(values17, "DataSet 17");
            set17.setColor(Color.WHITE);
            set17.setLineWidth(0.5f);
            set17.setDrawValues(false);
            set17.setDrawCircles(false);
            set17.setMode(LineDataSet.Mode.LINEAR);
            set17.setDrawFilled(false);
            set17.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show17.setTextColor(Color.parseColor(color));
            tv_show17_1.setTextColor(Color.parseColor(color));
            set17.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data17 = new LineData(set17);

            chart17.setData(data17);
            // get the legend (only possible after setting data)
            Legend l17 = chart17.getLegend();
            l17.setEnabled(false);

        }
        if((info.mnlPassList.size()+info.szlPassList.size())>17 ) {
            chart18.setVisibility(View.VISIBLE);
            ll_18.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(18-1)) {
                tv_show18.setText( "序号： " + info.mnlPassList.get("18").passName);
                String  num = "18";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("18").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("18").mnlPassSubList.get(i).yNum;
                    values18.add(new Entry(i, val));
                }
            }else{

                int num = 18-info.mnlPassList.size();
                tv_show18.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values18.add(new Entry(i, val));
                }
            }


            LineDataSet set18 = new LineDataSet(values18, "DataSet 18");
            set18.setColor(Color.WHITE);
            set18.setLineWidth(0.5f);
            set18.setDrawValues(false);
            set18.setDrawCircles(false);
            set18.setMode(LineDataSet.Mode.LINEAR);
            set18.setDrawFilled(false);
            set18.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show18.setTextColor(Color.parseColor(color));
            tv_show18_1.setTextColor(Color.parseColor(color));
            set18.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data18 = new LineData(set18);

            chart18.setData(data18);
            // get the legend (only possible after setting data)
            Legend l18 = chart18.getLegend();
            l18.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>18 ) {
            chart19.setVisibility(View.VISIBLE);
            ll_19.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(19-1)) {
                tv_show19.setText( "序号： " + info.mnlPassList.get("19").passName);
                String  num = "19";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("19").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("19").mnlPassSubList.get(i).yNum;
                    values19.add(new Entry(i, val));
                }
            }else{

                int num = 19-info.mnlPassList.size();
                tv_show19.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values19.add(new Entry(i, val));
                }
            }


            LineDataSet set19 = new LineDataSet(values19, "DataSet 19");
            set19.setColor(Color.WHITE);
            set19.setLineWidth(0.5f);
            set19.setDrawValues(false);
            set19.setDrawCircles(false);
            set19.setMode(LineDataSet.Mode.LINEAR);
            set19.setDrawFilled(false);
            set19.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show19.setTextColor(Color.parseColor(color));
            tv_show19_1.setTextColor(Color.parseColor(color));
            set19.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data19 = new LineData(set19);

            chart19.setData(data19);
            // get the legend (only possible after setting data)
            Legend l19 = chart19.getLegend();
            l19.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>19 ) {
            chart20.setVisibility(View.VISIBLE);
            ll_20.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(20-1)) {
                tv_show20.setText( "序号： " + info.mnlPassList.get("20").passName);
                String  num = "20";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("20").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("20").mnlPassSubList.get(i).yNum;
                    values20.add(new Entry(i, val));
                }
            }else{

                int num = 20-info.mnlPassList.size();
                tv_show20.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values20.add(new Entry(i, val));
                }
            }


            LineDataSet set20 = new LineDataSet(values20, "DataSet 20");
            set20.setColor(Color.WHITE);
            set20.setLineWidth(0.5f);
            set20.setDrawValues(false);
            set20.setDrawCircles(false);
            set20.setMode(LineDataSet.Mode.LINEAR);
            set20.setDrawFilled(false);
            set20.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show20.setTextColor(Color.parseColor(color));
            tv_show20_1.setTextColor(Color.parseColor(color));
            set20.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data20 = new LineData(set20);

            chart20.setData(data20);
            // get the legend (only possible after setting data)
            Legend l20 = chart20.getLegend();
            l20.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>20 ) {
            chart21.setVisibility(View.VISIBLE);
            ll_21.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(21-1)) {
                String  num = "21";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                tv_show21.setText( "序号： " + info.mnlPassList.get("21").passName);
                for (int i = 0; i < info.mnlPassList.get("21").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("21").mnlPassSubList.get(i).yNum;
                    values21.add(new Entry(i, val));
                }
            }else{

                int num = 21-info.mnlPassList.size();
                tv_show21.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values21.add(new Entry(i, val));
                }
            }


            LineDataSet set21 = new LineDataSet(values21, "DataSet 21");
            set21.setColor(Color.WHITE);
            set21.setLineWidth(0.5f);
            set21.setDrawValues(false);
            set21.setDrawCircles(false);
            set21.setMode(LineDataSet.Mode.LINEAR);
            set21.setDrawFilled(false);
            set21.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show21.setTextColor(Color.parseColor(color));
            tv_show21_1.setTextColor(Color.parseColor(color));
            set21.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data21 = new LineData(set21);

            chart21.setData(data21);
            // get the legend (only possible after setting data)
            Legend l21 = chart21.getLegend();
            l21.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>21 ) {
            chart22.setVisibility(View.VISIBLE);
            ll_22.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(22-1)) {
                tv_show22.setText( "序号： " + info.mnlPassList.get("22").passName);
                String  num = "22";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("22").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("22").mnlPassSubList.get(i).yNum;
                    values22.add(new Entry(i, val));
                }
            }else{

                int num = 22-info.mnlPassList.size();
                tv_show22.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values22.add(new Entry(i, val));
                }
            }


            LineDataSet set22 = new LineDataSet(values22, "DataSet 22");
            set22.setColor(Color.WHITE);
            set22.setLineWidth(0.5f);
            set22.setDrawValues(false);
            set22.setDrawCircles(false);
            set22.setMode(LineDataSet.Mode.LINEAR);
            set22.setDrawFilled(false);
            set22.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show22.setTextColor(Color.parseColor(color));
            tv_show22_1.setTextColor(Color.parseColor(color));
            set22.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data22 = new LineData(set22);

            chart22.setData(data22);
            // get the legend (only possible after setting data)
            Legend l22 = chart22.getLegend();
            l22.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>22 ) {
            chart23.setVisibility(View.VISIBLE);
            ll_23.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(23-1)) {
                tv_show23.setText( "序号： " + info.mnlPassList.get("23").passName);
                String  num = "23";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("23").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("23").mnlPassSubList.get(i).yNum;
                    values23.add(new Entry(i, val));
                }
            }else{

                int num = 23-info.mnlPassList.size();
                tv_show23.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values23.add(new Entry(i, val));
                }
            }


            LineDataSet set23 = new LineDataSet(values23, "DataSet 23");
            set23.setColor(Color.WHITE);
            set23.setLineWidth(0.5f);
            set23.setDrawValues(false);
            set23.setDrawCircles(false);
            set23.setMode(LineDataSet.Mode.LINEAR);
            set23.setDrawFilled(false);
            set23.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show23.setTextColor(Color.parseColor(color));
            tv_show23_1.setTextColor(Color.parseColor(color));
            set23.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data23 = new LineData(set23);

            chart23.setData(data23);
            // get the legend (only possible after setting data)
            Legend l23 = chart23.getLegend();
            l23.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>23 ) {
            chart24.setVisibility(View.VISIBLE);
            ll_24.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(24-1)) {
                tv_show24.setText( "序号： " + info.mnlPassList.get("24").passName);
                String  num = "24";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("24").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("24").mnlPassSubList.get(i).yNum;
                    values24.add(new Entry(i, val));
                }
            }else{

                int num = 24-info.mnlPassList.size();
                tv_show24.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values24.add(new Entry(i, val));
                }
            }


            LineDataSet set24 = new LineDataSet(values24, "DataSet 24");
            set24.setColor(Color.WHITE);
            set24.setLineWidth(0.5f);
            set24.setDrawValues(false);
            set24.setDrawCircles(false);
            set24.setMode(LineDataSet.Mode.LINEAR);
            set24.setDrawFilled(false);
            set24.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show24.setTextColor(Color.parseColor(color));
            tv_show24_1.setTextColor(Color.parseColor(color));
            set24.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data24 = new LineData(set24);

            chart24.setData(data24);
            // get the legend (only possible after setting data)
            Legend l24 = chart24.getLegend();
            l24.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>24 ) {
            chart25.setVisibility(View.VISIBLE);
            ll_25.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(25-1)) {
                tv_show25.setText( "序号： " + info.mnlPassList.get("25").passName);
                String  num = "25";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("25").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("25").mnlPassSubList.get(i).yNum;
                    values25.add(new Entry(i, val));
                }
            }else{

                int num = 25-info.mnlPassList.size();
                tv_show25.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values25.add(new Entry(i, val));
                }
            }


            LineDataSet set25 = new LineDataSet(values25, "DataSet 25");
            set25.setColor(Color.WHITE);
            set25.setLineWidth(0.5f);
            set25.setDrawValues(false);
            set25.setDrawCircles(false);
            set25.setMode(LineDataSet.Mode.LINEAR);
            set25.setDrawFilled(false);
            set25.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show25.setTextColor(Color.parseColor(color));
            tv_show25_1.setTextColor(Color.parseColor(color));
            set25.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data25 = new LineData(set25);

            chart25.setData(data25);
            // get the legend (only possible after setting data)
            Legend l25 = chart25.getLegend();
            l25.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>25 ) {
            chart26.setVisibility(View.VISIBLE);
            ll_26.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(26-1)) {
                tv_show26.setText( "序号： " + info.mnlPassList.get("26").passName);
                String  num = "26";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("26").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("26").mnlPassSubList.get(i).yNum;
                    values26.add(new Entry(i, val));
                }
            }else{

                int num = 26-info.mnlPassList.size();
                tv_show26.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values26.add(new Entry(i, val));
                }
            }


            LineDataSet set26 = new LineDataSet(values26, "DataSet 26");
            set26.setColor(Color.WHITE);
            set26.setLineWidth(0.5f);
            set26.setDrawValues(false);
            set26.setDrawCircles(false);
            set26.setMode(LineDataSet.Mode.LINEAR);
            set26.setDrawFilled(false);
            set26.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show26.setTextColor(Color.parseColor(color));
            tv_show26_1.setTextColor(Color.parseColor(color));
            set26.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data26 = new LineData(set26);

            chart26.setData(data26);
            // get the legend (only possible after setting data)
            Legend l26 = chart26.getLegend();
            l26.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>26 ) {
            chart27.setVisibility(View.VISIBLE);
            ll_27.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(27-1)) {
                tv_show27.setText( "序号： " + info.mnlPassList.get("27").passName);
                String  num = "27";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("27").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("27").mnlPassSubList.get(i).yNum;
                    values27.add(new Entry(i, val));
                }
            }else{

                int num = 27-info.mnlPassList.size();
                tv_show27.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values27.add(new Entry(i, val));
                }
            }


            LineDataSet set27 = new LineDataSet(values27, "DataSet 27");
            set27.setColor(Color.WHITE);
            set27.setLineWidth(0.5f);
            set27.setDrawValues(false);
            set27.setDrawCircles(false);
            set27.setMode(LineDataSet.Mode.LINEAR);
            set27.setDrawFilled(false);
            set27.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show27.setTextColor(Color.parseColor(color));
            tv_show27_1.setTextColor(Color.parseColor(color));
            set27.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data27 = new LineData(set27);

            chart27.setData(data27);
            // get the legend (only possible after setting data)
            Legend l27 = chart27.getLegend();
            l27.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>27 ) {
            chart28.setVisibility(View.VISIBLE);
            ll_28.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(28-1)) {
                tv_show28.setText( "序号： " + info.mnlPassList.get("28").passName);
                String  num = "28";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("28").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("28").mnlPassSubList.get(i).yNum;
                    values28.add(new Entry(i, val));
                }
            }else{

                int num = 28-info.mnlPassList.size();
                tv_show28.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values28.add(new Entry(i, val));
                }
            }


            LineDataSet set28 = new LineDataSet(values28, "DataSet 28");
            set28.setColor(Color.WHITE);
            set28.setLineWidth(0.5f);
            set28.setDrawValues(false);
            set28.setDrawCircles(false);
            set28.setMode(LineDataSet.Mode.LINEAR);
            set28.setDrawFilled(false);
            set28.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show28.setTextColor(Color.parseColor(color));
            tv_show28_1.setTextColor(Color.parseColor(color));
            set28.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data28 = new LineData(set28);

            chart28.setData(data28);
            // get the legend (only possible after setting data)
            Legend l28 = chart28.getLegend();
            l28.setEnabled(false);
        }


        if((info.mnlPassList.size()+info.szlPassList.size())>28 ) {
            chart29.setVisibility(View.VISIBLE);
            ll_29.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(29-1)) {
                tv_show29.setText( "序号： " + info.mnlPassList.get("29").passName);
                String  num = "29";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("29").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("29").mnlPassSubList.get(i).yNum;
                    values29.add(new Entry(i, val));
                }
            }else{

                int num = 29-info.mnlPassList.size();
                tv_show29.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values29.add(new Entry(i, val));
                }
            }


            LineDataSet set29 = new LineDataSet(values29, "DataSet 29");
            set29.setColor(Color.WHITE);
            set29.setLineWidth(0.5f);
            set29.setDrawValues(false);
            set29.setDrawCircles(false);
            set29.setMode(LineDataSet.Mode.LINEAR);
            set29.setDrawFilled(false);
            set29.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show29.setTextColor(Color.parseColor(color));
            tv_show29_1.setTextColor(Color.parseColor(color));
            set29.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data29 = new LineData(set29);

            chart29.setData(data29);
            // get the legend (only possible after setting data)
            Legend l29 = chart29.getLegend();
            l29.setEnabled(false);
        }

        if((info.mnlPassList.size()+info.szlPassList.size())>29 ) {
            chart30.setVisibility(View.VISIBLE);
            ll_30.setVisibility(View.VISIBLE);
            color = color_4;
            if(info.mnlPassList.size()>(30-1)) {
                tv_show30.setText( "序号： " + info.mnlPassList.get("30").passName);
                String  num = "30";
                if("A".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_1;
                }
                if("B".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_2;
                }
                if("C".equalsIgnoreCase(info.mnlPassList.get(num).phase))
                {
                    color = color_3;
                }
                for (int i = 0; i < info.mnlPassList.get("30").mnlPassSubList.size(); i++) {
                    float val = (float) info.mnlPassList.get("30").mnlPassSubList.get(i).yNum;
                    values30.add(new Entry(i, val));
                }
            }else{

                int num = 30-info.mnlPassList.size();
                tv_show30.setText( "序号： " + info.szlPassList.get(num+"").passName);
                if(info.szlPassList.get(num+"")==null)
                {
                    return ;
                }
                for (int i = 0; i < info.szlPassList.get(num+"").szlPassSubList.size(); i++) {
                    float val = (float) info.szlPassList.get(num+"").szlPassSubList.get(i).yNum;
                    values30.add(new Entry(i, val));
                }
            }


            LineDataSet set30 = new LineDataSet(values30, "DataSet 30");
            set30.setColor(Color.WHITE);
            set30.setLineWidth(0.5f);
            set30.setDrawValues(false);
            set30.setDrawCircles(false);
            set30.setMode(LineDataSet.Mode.LINEAR);
            set30.setDrawFilled(false);
            set30.setHighLightColor(Color.parseColor("#FF00FF"));
            tv_show30.setTextColor(Color.parseColor(color));
            tv_show30_1.setTextColor(Color.parseColor(color));
            set30.setColor(Color.parseColor(color));
            // create a data object with the data sets
            LineData data30 = new LineData(set30);

            chart30.setData(data30);
            // get the legend (only possible after setting data)
            Legend l30 = chart30.getLegend();
            l30.setEnabled(false);
        }

    }


    @Override
    public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {

        int count = seekBarValues.getProgress() + 1000;
        tvCount.setText(String.valueOf(count));

        chart.resetTracking();

        setData1();

        // redraw
        chart.invalidate();
    }

    @Override
    public void saveToGallery() { /* Intentionally left empty */ }

    @Override
    public void onStartTrackingTouch(SeekBar seekBar) {}

    @Override
    public void onStopTrackingTouch(SeekBar seekBar) {}

    @Override
    public void onPointerCaptureChanged(boolean hasCapture) {

    }

    private  String sumY(PassInfo mnlPasslist,int i_num)
    {
        PassInfoSubData subData = mnlPasslist.mnlPassSubList.get(i_num);

        float y = subData.yNum;
//        float para_a = mnlPasslist.paraA;
//        float para_b = mnlPasslist.paraB;
//        float val = para_a*y+ para_b;


        NumberFormat nf = NumberFormat.getNumberInstance();
        nf.setMaximumFractionDigits(5);

        String distanceString = nf.format(y);
        return distanceString+"("+mnlPasslist.unit+")";
    }

    private  String sumY_bak(PassInfo mnlPasslist,int i_num)
    {
        PassInfoSubData subData = mnlPasslist.mnlPassSubList.get(i_num);

        float y = subData.yNum;
        float para_a = mnlPasslist.paraA;
        float para_b = mnlPasslist.paraB;
        float val = para_a*y+ para_b;

        return Float.toString(val) ;
    }



}
